//
//  YQHousCell.m
//  OverseasImmigration
//
//  Created by yuqin on 2019/5/24.
//  Copyright © 2019年 yuqin. All rights reserved.
//

#import "YQHousCell.h"

@implementation YQHousCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    //设置image圆角
    self.img.layer.cornerRadius = 5.f;
    self.img.layer.masksToBounds = YES;
    
    //设置介绍label圆角
    self.describeLab.layer.cornerRadius = 5.f;
    self.describeLab.layer.masksToBounds = YES;
}

- (void)loadHouseCellWithModel:(YQOverseasModel *)model {
    [self.img sd_setImageWithURL:[NSURL URLWithString:model.litpic]];
//    self.describeLab.text = model.Description;
    self.houseNameLab.text = model.title;
    self.priceLab.text = [NSString stringWithFormat:@"￥%@万起",model.price];
    self.houseDescribeLab.text = model.type;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
